<?php

define('ADSERVER_APPLICATION_ID',			1);
define('LIMIT_START_TIME',					'01/01/1970');

// Common Icons
define('IMAGE_NAME_REFRESH',				'refresh_small.png');
define('IMAGE_NAME_DETAIL',					'search_small.png');
define('IMAGE_NAME_HOME_SMALL',				'home_small.png');
define('IMAGE_NAME_EDIT_SMALL', 			'edit_small.png');
define('IMAGE_NAME_EDIT_DISABLED', 			'edit_small_disabled.png');
define('IMAGE_NAME_DELETE_SMALL',			'delete_small.png');
define('IMAGE_NAME_REFUSE_SMALL',			'stop_small.png');
define('IMAGE_NAME_CONFIG_SMALL',			'configure_small.png');
define('IMAGE_NAME_DELETE_NOT',				'delete_not_small.png');
define('IMAGE_NAME_DELETE',					'delete_small.png');
define('IMAGE_NAME_MORE', 					'add_small.png');
define('IMAGE_NAME_CALENDAR_SMALL',			'calendar_small.png');
define('IMAGE_NAME_REDO_SMALL',				'redo.png');
define('IMAGE_NO_IMAGE',					APPLICATION_DIR . "/public/images/no_image_".DEFAULT_LANGUAGE.".png");

//REGION
define('IMAGE_NAME_REGION',					'region.png');
define('IMAGE_NAME_REGION_SMALL',			'region_small.png');

//CANAL
define('IMAGE_NAME_CANAL',					'canal.png') ;
define('IMAGE_NAME_CANAL_SMALL',			'canal_small.png') ;

//CAMPAGNE
define('IMAGE_NAME_CAMPAGNE', 				'ads.png');
define('IMAGE_NAME_CAMPAGNE_SMALL',			'ads_small.png');

//AJUSTEMENT TECHNIQUE
define('IMAGE_NAME_SFR_REGIE_LOGO',			'logos.png');
define('IMAGE_NAME_SFR2_SMALL',				'sfr2_small.gif');
define('IMAGE_NAME_MINUS_SMALL', 			'minus_small.png');

//EMPLACEMENT
define('IMAGE_NAME_EMPLACEMENT_SMALL',		'apps_small.png');
define('IMAGE_NAME_EMPLACEMENT',			'apps.png');

//FORMAT
define('IMAGE_NAME_FORMAT_PUBLICITE_SMALL',	'preferences_small.png');
define('IMAGE_NAME_FORMAT_PUBLICITE',		'preferences.png');

//CHIFFRE AFFAIRE
define('IMAGE_NAME_CA', 					'money.png');

//PARAMETRAGE
define('IMAGE_NAME_PARAMETER_SMALL',		'parameter_small.png');
define('IMAGE_NAME_PARAMETER',				'parameter.png');

//UTILISATEUR
define('IMAGE_NAME_USER',					'user.png');
define('IMAGE_NAME_USER_SMALL',				'user_small.png');
define('IMAGE_NAME_ADMIN_SMALL',			'admin_small.png');
define('IMAGE_NAME_ADMIN_UP_SMALL',			'admin_up_small.png');
define('IMAGE_NAME_KEY_SMALL', 				'key_small.png');
define('IMAGE_NAME_KEY', 					'key.png');
define('_IMAGE_MODIFIER',					'edit');
define('_IMAGE_SUPPRIMER',					'delete');
define('_IMAGE_DELETE',						'delete');

//Images
define('IMAGE_NAME_REGIE_SMALL',			'regie_small.png');
define('IMAGE_NAME_EDIT',					'edit.png');
define('IMAGE_NAME_ADJUST',					'adjust.png');
define('IMAGE_NAME_CONFIG_REVERTED_SMALL',	'configure_reverted_small.png');
define('IMAGE_NAME_HISTORY', 				'history.png');
define('IMAGE_NAME_HISTORY_SMALL', 			'history_small.png');
define('IMAGE_NAME_REPORTING',				'chart.png');
define('IMAGE_NAME_REPORTING_SMALL',		'chart_small.png');
define('IMAGE_NAME_FAX_SMALL',				'fax_small.png');
define('IMAGE_NAME_DONE_SMALL',				'done_small.png');
define('IMAGE_NAME_ATTACH_SMALL',			'attach_small.png');
define('IMAGE_NAME_SIMULATE_SMALL', 		'simulate_small.png');
define('IMAGE_NAME_STOP',			 		'stop.png');
define('IMAGE_NAME_STOP_SMALL',		 		'stop_small.png');
define('IMAGE_NAME_PAUSE_SMALL',	 		'pause_small.png');
define('IMAGE_NAME_RESUME_SMALL',	 		'resume_small.png');
define('IMAGE_NAME_INFO2_SMALL',			'info2_small.png');
define('_IMAGE_DONE',						'done');
define('_IMAGE_SEARCH',						'search');
define('_IMAGE_CALENDAR',					'calendar');
define('_IMAGE_CHAT',						'chat');
define('IMAGE_NAME_TRANSFORM',				'redo.png');
define('IMAGE_VALIDATE_DISCOUNT_RATE',		'configure');
define('IMAGE_NAME_TECH_DATA',				'tech_data.png');
define('IMAGE_NAME_TECH_DATA_TEMPLATE',		'td_templates.png');
define('IMAGE_NAME_TECH_DATA_TEMPLATE_SMALL', 'td_templates_small.png');
define('IMAGE_NAME_COLLAPSE', 		'collapse.png');
define('IMAGE_NAME_EXPAND', 		'expand.png');

define('ACT_TRANSFORM', 					10);
define('ACT_RETRANSFORM', 					20);
define('ACT_DETAIL_EDIT',					80);

//image size
define('IMAGE_SIZE_SMALL', 					'small');
define('IMAGE_ICON_FILE_EXTENSION',			'png');

// System constants
define('ADMIN_HOME', 						APPLICATION_URL . '/home/list');

//EMAIL
define('EMAIL_DO_SENDER', 					'regie.publicitaire@fr.sfr.com');
define('EMAIL_DO_SUBJECT', 					'DO subject');
define('EMAIL_DO_COMMENT', 					'Send DO to users');
define('COPYRIGHT',							'Copyright 2010 &copy;');

// user information
define('ADMIN_SFR',							1);
define('ADMIN_SUPPORT',						2);

//user management
define('ACCOUNT_TYPE_ANNONCEUR',			1);
define('ACCOUNT_TYPE_AGENT',				2);
define('ACCOUNT_TYPE_AGENT_ANNONCEUR',		10);
define('ACCOUNT_TYPE_AGENT_LOGIN',			12);
define('ACCOUNT_TYPE_REGIE',				3);
define('ACCOUNT_TYPE_SUPPORT',				4);

//form action const
define('ACT_EDIT',							10);
define('ACT_VALID_EDIT',					20);
define('ACT_DELETE',						30);
define('ACT_REFUSE',						60);
define('ACT_CANCEL',						65);
define('ACT_SIMULATE',						70);
define('ACT_CHANGE_MASTER',					90);
define('ACT_PAUSE',							110);
define('ACT_STOP',							120);
define('ACT_RESUME',						130);
define('ACT_SUBMIT',						160);
define('ACT_ACCEPT',						200);
define('ACT_ADJUST',						210);
define('ACT_REGENERATE',					220);
define('ACT_LOAD',							0);
define('ACT_SUBMIT_AND_SIMULATE',			230);
define('ACT_DO_SIMULATION',					250);


//paginer
define('PAGING_CSS_LINK_CLASS', 			'paging');
define('PAGING_PREV',						'&laquo; ');
define('PAGING_NEXT',						' &raquo;');
define('PAGING_SEPARATOR',					'&nbsp;-&nbsp;');
define('PAGING_CSS_CURRENT_PAGE',			'current_page');

// REQUESTER TYPE for DEMAND
define('REQUESTER_ANNONCEUR',				1);
define('REQUESTER_REGIE_SUPPORT',			2);
define('NBITEM_TIME_OF_DAY',				48);


// PARAMETER types
define('PARAMETER_TYPE_SYSTEM',				1);
define('PARAMETER_TYPE_RESERVATION',		2);
define('PARAMETER_TYPE_TARGETING',			3);
define('PARAMETER_TYPE_ALERTS',				4);

// Technical data
define('RESV_TECHDATA_IMG_URL',				APPLICATION_URL.'/images/technical_data');
define('RESV_TECHDATA_IMG_DIR',				APPLICATION_DIR.'/public/images/technical_data');

define('RESV_TECHDATA_FILE_URL',			APPLICATION_URL.'/files');
define('RESV_TECHDATA_FILE_DIR',			APPLICATION_DIR.'/public/files');

// Technical data template
define('RESV_TECHDATA_TEMPLATE_IMG_URL',	APPLICATION_URL.'/images/technical_data_template');
define('RESV_TECHDATA_TEMPLATE_IMG_DIR',	APPLICATION_DIR.'/public/images/technical_data_template');
define('RESV_TECHDATA_TEMPLATE_FILE_DIR',	APPLICATION_DIR.'/application/files/sms_html');
define('RESV_TECHDATA_TEMPLATE_FILE_URL',	APPLICATION_URL.'/files/technical_data_template');

//planning
define('_LB_PLANNING_MAX_NB_DAYS', 			5);
define('_LB_PLANNING_MAX_NB_TIMES', 		8);
//Improve GUI coherency
define('SIZE_NAME',							20);
define('SIZE_NAME_LARGE',					40);
define('SIZE_POSITION',						20);
define('SIZE_COL_DESCRIPTION',				30);
define('SIZE_ROW_DESCRIPTION',				5);

define('USER_PROJECT_ACCESS_ALLOWED_VODAFONELIVE', 	1);
define('USER_PROJECT_ACCESS_ALLOWED_GALLERY', 		2);
define('USER_PROJECT_ACCESS_ALLOWED_FAST',		 	3);

define('SEND_LINK',							10);
define('CHANGE_PASSWORD',					20);


// parameter
define('PARAM_TYPE_NUMBER',					10);
define('PARAM_TYPE_RATE_NUMBER',			20);
define('PARAM_TYPE_BOOLEAN',				30);
define('PARAM_TYPE_DATETIME',				40);
define('PARAM_TYPE_POSITIVE_NUMBER',		50);
define('PARAM_TYPE_LIST_QUERY',				60);
define('PARAM_TYPE_LIST_WEBSERVICE',		70);
define('PARAM_TYPE_TEXT',					80);
define('PARAM_TYPE_STRING_SELECTION',		90);
define('PARAM_TYPE_FLOAT_WITH_3_DECIMAL',	100);
define('PARAM_TYPE_FLOAT_WITH_2_DECIMAL',	110);

define('PARAM_TYPE_DAY_OF_WEEK',			120);
define('PARAM_TYPE_HOUR_OF_DAY',			130);

// data input constrains
define('MAX_LENGTH_CODE', 					3);
define('MAX_LENGTH_NAME', 					64);
define('MAX_LENGTH_DESC', 					512);
define('MAX_LENGTH_PASSWORD', 				32);
define('MIN_LENGTH_PASSWORD', 				6);

// css color
define('SELECTED_RESERVATION_HOUR_COLOR', 	'#008000');
define('_LB_REQUIRE_FIELD', 				'<span style="color:#FF0000;">*</span>');

// error number constant
define('ERR_IS_NOT_BELONG_TO_OBJECT', 		10);

// FIXED or NOT FIXED
define('FIXED_TYPE',						1);

// SUPPORT and REGIE
define('REGIE',								1);
define('SUPPORT',							2);

// ALLOW TO DELETE CAMPAGNE - AMOUNT OF MINUTES SINCE THE LAST_MODIFICATION
define('MINUTE_ALLOW_TO_DELETE_CAMPAGNE', 	90);

// STATUS
define('DISABLED', 							1);
define('ENABLED', 							0);

//type of BO
define('ACTION_LOG_BO_TYPE_ADVERTISER', 	10);
define('ACTION_LOG_BO_TYPE_REGIE', 			20);

// RESERVATION STATUS
define('RESERVATION_STATUS_PAUSED', 		1);
define('RESERVATION_STATUS_STOPPED', 		2);

// AMCHART
define('AMCHART_COLUMN_PATH', 				APPLICATION_URL.'/scripts/amchart/column/');
define('AMCHART_LINE_PATH', 				APPLICATION_URL.'/scripts/amchart/line/');

define('CHART_HEIGHT',						300);
define('CHART_WIDTH',						455);
define('CHART_FULL_WIDTH',					920);
define('LEGEND_HEIGHT',						20);

//TECHNICAL DATA CONTENT TYPE
define('IMAGE_NAME_TECH_DATA_CONTENT_TYPE',	'td_type_content.png');
define('IMAGE_NAME_TECH_DATA_CONTENT_TYPE_SMALL', 'td_type_content_small.png');
define('MAX_DECIMAL_NUMBER_OF_TIMEOUT', 	3);

// SCRIPT : AGG_TRAFFIC_N_DAY
define('AGG_TYPE_HISTORICAL_RESPONSE_ANALYSIS_OF_ZONE_ENTER_ZONE_CAMPAIGN', 1);
define('AGG_TYPE_HISTORICAL_ANALYSIS_OF_CAMPAIGN_TRANSMISSION', 2);

define('ALERT_STATUS_STABLE',				1);
define('ALERT_STATUS_UP',					2);
define('ALERT_STATUS_DOWN',					3);

define('IMAGE_MAX_WIDTH_DISPLAY',			350);
define('IMAGE_MAX_HEIGHT_DISPLAY',			350);

define('NUMBER_DECIMALS',					3);

// THEMATIQUE
define('IMAGE_NAME_THEMATIQUE',				'theme.png') ;
define('IMAGE_NAME_THEMATIQUE_SMALL',		'theme_small.png') ;
define('THEMATIQUE_ADVERTISER_ACT',			40);

//TYPE CAMPAGNE
define('IMAGE_NAME_CAMPAGNE_TYPE',			'campaign_type.png') ;
define('IMAGE_NAME_CAMPAGNE_TYPE_SMALL',	'campaign_type_small.png') ;

// ZONE
define('ZONE_REGION_ACT',					10);
define('ZONE_PERIOD_ACT',					20);
define('POINT_SALE_REGION_ACT',				30);
define('GROUP_ZONE_PERIOD_ACT',				40);
define('FILTER_ZONE_ACT',					50);

//ZONE
define('IMAGE_NAME_ZONE',					'zone.png') ;
define('IMAGE_NAME_ZONE_SMALL',				'zone_small.png') ;

define('IMAGE_ZONE_PREVIOUS',			   'left.png');
define('IMAGE_ZONE_NEXT',				   'right.png');

//GROUP_ZONE
define('IMAGE_NAME_GROUP_ZONE',				'group_zone.png');
define('IMAGE_NAME_GROUP_ZONE_SMALL',		'group_zone_small.png') ;

define('IMAGE_NAME_POINT_SALE',				'point_sale.png');
define('IMAGE_NAME_POINT_SALE_SMALL',		'point_sale_small.png');


define('SORT_BY_DATE',						1);
define('SORT_BY_CAMPAIGN',					2);

define('IMPORT_FILE_SEPARATOR',				";");
define('IMPORT_FILE_ENCLOSURE',				'"');
define('IMPORT_FILE_ESCAPOR',				'\\');


define('URL_PREFIX',						'http://');


define('IMAGE_NAME_NEXT_CALENDAR_SMALL', 'next_calendar.png');
define('STATUS_ACCEPT', 1);
define('STATUS_CANCEL', 0);